﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Stee.CAP8.MessageBus.Sagas.Core.SubscribeStores
{
    public interface ISubscribeStore
    {
        void AddHandler<TMssage>(IHandleMessages handler, Delegate callback);
        Delegate GetMessageHandlerFunction(Type type);
        List<IHandleMessages<TMessage>> GetMessageHandlers<TMessage>();
        List<IHandleMessages<TMessage>> GetMessageHandlersForMessage<TMessage>();
        List<IHandleMessages> GetMessageHandlersForMessage(Type type);


    }
}
